﻿<UserControl x:Class="YodaSL.PlayerPanel"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	d:DesignHeight="263" d:DesignWidth="240" xmlns:my="clr-namespace:YodaSL">
	
	<Grid x:Name="LayoutRoot"  Loaded="LayoutRoot_Loaded">
		<Grid.RowDefinitions>
			<RowDefinition Height="4*" MinHeight="100" />
			<RowDefinition Height="2*" MinHeight="60" />
			<RowDefinition MinHeight="30" />
			<RowDefinition MinHeight="30" />
			<RowDefinition Height="*" MinHeight="30" />
		</Grid.RowDefinitions>
		<my:ServingPanel Grid.Row="1" x:Name="servingPanel" />
		<my:WinnerPanel Grid.Row="2" x:Name="winnerPanel" Background="Green" />
		<my:UnforcedErrorPanel Grid.Row="4" x:Name="errorPanel" Background="Red" />
		<my:NetPointPanel Grid.Row="3" x:Name="netPointPanel" />
		<Button>
			<Grid x:Name="gridButtonContent" VerticalAlignment="Center">
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="*"></ColumnDefinition>
					<ColumnDefinition Width="*"></ColumnDefinition>
				</Grid.ColumnDefinitions>
				<Image x:Name="playerImage" Grid.Column="0" Source="/YodaSL;component/Images/Stosur-logo.jpg" Width="100" Height="100" VerticalAlignment="Center" />
				<StackPanel x:Name="playerText" Orientation="Vertical" Grid.Column="1">
					<TextBlock x:Name="playerName"  Text="Smantha Stosur" FontWeight="Bold" Foreground="#1ca0f2" VerticalAlignment="Center" TextWrapping="Wrap"  Width="130" TextAlignment="Center" FontSize="15" HorizontalAlignment="Center" />
					<TextBlock x:Name="winnerText"  Text="winners: 5"  Foreground="#1ca0f2" VerticalAlignment="Center" TextWrapping="NoWrap"  Width="130" TextAlignment="Center" FontSize="12" HorizontalAlignment="Center" />
					<TextBlock x:Name="unforcedText"  Text="unforced error: 10"  Foreground="#1ca0f2" VerticalAlignment="Center" TextWrapping="NoWrap"  Width="130" TextAlignment="Center" FontSize="12" HorizontalAlignment="Center" />

				</StackPanel>

			</Grid>


		</Button>
	</Grid>
</UserControl>
